Translation:

34. And We did try Solomon: We placed on his throne a body (without life): but he did turn (to Us in true devotion):

Notes (Tafseer)

4188. What was the trial of Solomon? All the power, wealth, and glory, which were given to him were a spiritual trial to him. They might have turned another man's head, but he was staunch and true, and while he enjoyed and used all the power he had-over the jinns, men, and the forces of nature, (see below), he kept his mind steady to the service of Allah. Cf. viii. 28, where "your possessions and your porgeny" are declared to be "but a trial".

4189. "The body on his throne" has been variously interpreted. The interpretation that appeals more is the following: Sulaiman was at his utmost height of power and glory. Allah Ta'ala tested him with a severe illness during which he was no more than a lifeless body on his throne. He came to realize how weak and powerless he was in the eyes of Allah. In this state of weakness and misery he turned to Allah with humility and humbleness.